package com.internal.datamodel;

import java.util.ArrayList;
import java.util.List;


import com.persistances.entities.Artist;

public class NodeArtist implements Comparable<Artist>{

	private Artist entitiesArtist;
	private List<NodeAlbum> nodeAlbum;
	public Artist getEntitiesArtist() {
		return entitiesArtist;
	}
	public void setEntitiesArtist(Artist entitiesArtist) {
		this.entitiesArtist = entitiesArtist;
	}
	public List<NodeAlbum> getNodeAlbum() {
		if(nodeAlbum != null)
			return nodeAlbum;
		else {
			nodeAlbum = new ArrayList<NodeAlbum>();
			return nodeAlbum;
		}
	}
	public void setNodeAlbum(List<NodeAlbum> nodeAlbum) {
		this.nodeAlbum = nodeAlbum;
	}
	
	@Override
	public String toString(){
		return entitiesArtist.getName();
	}
	
	public int compareTo(Artist o) {
		
		return entitiesArtist.getName().compareTo(o.getName());
	}
	
}
